﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Billing.DataObjects
{
    public partial class AccountsView : Billing.IBaseObject
    {

        public string Key
        {
            get
            {
                return this.AccountNumber;
            }
            set
            {
                this.AccountNumber = value;
            }
        }

        public string Name
        {
            get
            {
                return this.Client.Name;
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        public object Value
        {
            get
            {
                return this.ID;
            }
            set
            {

            }
        }

        public object CurrentObject
        {
            get { return this; }
        }

        partial void OnRentalStatusIDChanged()
        {
            RentalStatus = BillingDataContext.Context.GetRentalStatusNameByID(RentalStatusID);
        }
    }
}
